using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
public partial class pages_TourDetails : BasePage
{
    TourDAO daoTour = new TourDAO();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {            
            int id = int.Parse(Request["id"]);
            Tour tour = new Tour();
            IList<Tour> tlist = new List<Tour>();
            tour = daoTour.GetTour(id);
            tlist.Add(tour);           
            rptTour.DataSource = tlist; ;
            rptTour.DataBind();

            if (IsPersolnel)
            {
                if(rptTour.Items.Count>0){
                    ((Panel)rptTour.Items[0].FindControl("pnlEdit")).Visible=true;
                }
            }
            
        }
        catch (Exception ex)
        {
            Response.Redirect("Default.aspx");
        }
    } 
}
